﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class XMLHttpRequest_getStoreQty : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string M_ID = this.Page.Request.Params["M_ID"];
            string P_ID = this.Page.Request.Params["P_ID"];
            string H_ID = this.Page.Request.Params["H_ID"];
            string Q_ID = this.Page.Request.Params["Q_ID"];

            this.getStoreQty(M_ID, P_ID, H_ID);
        }
    }

    private void getStoreQty(string sIm_no, string sBatch_no, string sStore_id)
    {
        ClsWareHouseDAL cls_WareHouseDAL = new ClsWareHouseDAL();
        decimal strQty = cls_WareHouseDAL.getWareHouseQty(sIm_no, sBatch_no, sStore_id);
        this.Page.Response.Write(strQty.ToString());
        this.Page.Response.End();
    }
}
